from tkinter import *

root = Tk()
root.title('grid的用法')
root.geometry('400x200+200+200')

lable1 = Label(root,text='用户名')
lable1.grid(row=0,column=1,padx=10)
entry1 = Entry(root)
entry1.grid(row=0,column=2,padx=10) 
lable2 = Label(root,text='用户名不允许有中文')
lable2.grid(row=0,column=3)

lable3 = Label(root,text='密码')
lable3.grid(row=1, column=1)
entry2 = Entry(root)
entry2.grid(row=1, column=2)
lable4 = Label(root,text='确认',bg='yellow')
lable4.grid(row=2,column=1 ,columnspan=3)

# ls = ((1,2,3,4),('a','b','c','d'))
# for index,content in enumerate(ls):
#     for n in content:
#         print(index,n)
root.mainloop()

